<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<?php echo $this->url->getBaseUri() ?>public/back/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $this->url->getBaseUri() ?>public/back/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo $this->url->getBaseUri() ?>public/back/Css/style.css" />
    <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/Js/jquery.js"></script>
    <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/Js/bootstrap.js"></script>
    <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/Js/ckform.js"></script>
    <script type="text/javascript" src="<?php echo $this->url->getBaseUri() ?>public/back/Js/common.js"></script>

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>

<table class="table table-bordered table-hover definewidth m10" >
    <thead>
    <tr>
    <td><input type='checkbox' onclick='checkAll(this.checked)'></td>
    <th>id</th>
     <th>用户id</th>
    <th>地区</th>
    <th>运送方式</th>
    <th>运送种类</th>
    <th>重量</th> 
    <th>仓位数量</th>
    <th>价格</th>
    <th>截止期限</th>
    <th>详情</th>
    <th>仓位状态</th>
    <th>编辑</th>
    </tr>
    </thead>
    <?php foreach ($mycws as $value) {
      ?>
       <tr>
     <td><input type='checkbox' name='ids[]' value=''></td>
      
      <td><?php echo $value->id  ;?></td>
      <td><?php echo $value->uid  ;?></td>
      <td><?php echo $value->getcangwei()->area_id  ;?></td>
      <td><?php echo $value->getcangwei()->transport_style  ;?></td>
      <td><?php echo $value->getcangwei()->transport_type ;?></td>
      <td><?php echo $value->cw_order  ;?></td>
      <td><?php echo $value->status  ;?></td>
      <td><?php echo $value->id  ;?></td>
      <td><?php echo $value->getcangwei()->lastdate  ;?></td>
      <td><?php echo $value->id  ;?></td>
      <td><?php echo $value->status  ;?></td>
      
            <td>
                  <a href="#">仓位确认</a>|
                  <a href="<?php echo $this->url->getBaseUri()."admin/cworder/del/$value->id" ?>">仓位删除</a>
            </td>
        </tr>
       <?php }?> 
   
    </table>
    </form>
   
    </body>
    </html>

<script>
    $(function () {
        
    $('#addnew').click(function(){

        location.href="add.php";
     });


    });

  function del(id)
  {   
    if(confirm("确定要删除吗？"))
    { 
      var url = "index.html";
      window.location.href=url;   
    
    }
  }

  
  function checkAll(f){
    var objs=document.getElementsByName('ids[]');
    for(var i=0;i<objs.length;i++){
      objs[i].checked=f;
    
    }
  }


  function check(){
    document.getElementById('frm1').action='tag_goods.php';
    return ture;
  }


</script>
